package com.ruoyi.service.mapper;

import com.ruoyi.service.domain.ServiceRule;

import java.util.List;

/**
 * 接单退单规则Mapper接口
 * 
 * @author ZDL
 * @date 2025-03-10
 */
public interface ServiceRuleMapper 
{
    /**
     * 查询接单退单规则
     * 
     * @param ruleId 接单退单规则主键
     * @return 接单退单规则
     */
    public ServiceRule selectServiceRuleByRuleId(Long ruleId);

    /**
     * 查询接单退单规则列表
     * 
     * @param serviceRule 接单退单规则
     * @return 接单退单规则集合
     */
    public List<ServiceRule> selectServiceRuleList(ServiceRule serviceRule);

    /**
     * 新增接单退单规则
     * 
     * @param serviceRule 接单退单规则
     * @return 结果
     */
    public int insertServiceRule(ServiceRule serviceRule);

    /**
     * 修改接单退单规则
     * 
     * @param serviceRule 接单退单规则
     * @return 结果
     */
    public int updateServiceRule(ServiceRule serviceRule);

    /**
     * 删除接单退单规则
     * 
     * @param ruleId 接单退单规则主键
     * @return 结果
     */
    public int deleteServiceRuleByRuleId(Long ruleId);

    /**
     * 批量删除接单退单规则
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteServiceRuleByRuleIds(Long[] ruleIds);
}
